﻿namespace Rmq.Center
{
    public class OrderPickupingMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }    
    }

    public class OrderPickupingProducer : BaseProducer<OrderPickupingMsg>
    {
        public OrderPickupingProducer()
            : base(Const.RoutingKeys.OrderPickuping)
        { }
    }

    public class OrderPickupingConsumer : BaseConsumer<OrderPickupingMsg>
    {
        public OrderPickupingConsumer()
            : base(Const.QueueNames.OrderPickuping, Const.RoutingKeys.OrderPickuping)
        { }
    }
}